package com.duan.laugh.msg.api.pojo.DTO;

import com.duan.laugh.msg.api.pojo.entity.MsgSend;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 消息/代办 DTO
 * </p>
 *
 * @author liutf
 * @since 2019/11/15
 */
@Data
@Accessors(chain = true)
public class MsgDTO implements Serializable {
    private static final long serialVersionUID = 3824725537029655567L;

    @ApiModelProperty(value = "处理类型")
    private Integer handling;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "事件id")
    private Long eventId;

    @ApiModelProperty(value = "状态(26未办、27已办) / （已发送、未发送、22未读、23已读）")
    private Integer status;

    @ApiModelProperty(value = "主题")
    private String subject;

    @ApiModelProperty(value = "处理人")
    private String handler;

    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "消息发送 list")
    private List<MsgSend> msgSends;
}
